package com.mall.ums.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.dto.UpdatePasswordParamDto;
import com.mall.model.domain.ums.Admin;
import com.mall.model.domain.vo.AdminInfoVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author clutchcitylee
 * @create 2023-03-12-9:39
 */
public interface AdminService extends IService<Admin> {
    boolean removeUser(Integer id);

    Map loginVerification(String username, String password, HttpServletRequest request);

    AdminInfoVo getUserInfo(Long id);

    Admin register(Admin admin);

    boolean updateAdminById(Admin admin, Integer id);

    void updatePassword(UpdatePasswordParamDto updatePasswordParamDto);

    void updateStatus(Integer id, Integer status);
}
